package com.ubst.smartad.impl.admin.policy;

import java.sql.*;
import java.util.*;
import java.io.*;

import com.ubst.smartad.common.TimeUtil;
import com.ubst.smartad.logger.Debug;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;

public class PolicyMngImpl {
	
	Connection con = null;
	private String serverName;
	private Debug debug;
	//private FileHostEnv fhostEnv;


    /** 
     * 생성자
     *   
     *   
    */ 
	public PolicyMngImpl(Connection con, String serverName, String log_level) {
		this.con = con;
		this.serverName = serverName;
		this.debug = new Debug("PolicyMngImpl", log_level);
		//this.fhostEnv = FileHostEnv.getInstance(serverName);

	}


	/**
	 *  @author Kswany
	 * 	Policy(정책) - Basic(기본정책) jqGrid List 가져오기
	 * 
	 *  searchStr: 검색조건
	 *  orderBy: sort조건
	 *  prev_page: first limit 
	 *  next_page: last limit
	 *  
	 * **/
	public List getJqgridBasicList(String searchStr, String orderBy, int prev_page, int next_page) 
//			throws SQLException{
			throws Exception{
		PreparedStatement pstmt=null;
		ResultSet rs = null;

		HashMap log_data_map = null;
		List log_datas = new ArrayList();
		
		try{			
			
		/*
		 *  DB value 값세팅 구현 로직 들어갈 부분
		 */
		// 가상데이터
		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat1");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("type", "시스템정책");
		log_data_map.put("system_name", "redhat2");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat3");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat4");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat5");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);
				
	//	}catch (SQLException e){
		}catch (Exception e){
			throw e;
		}finally{
	//		if ( rs != null) try{rs.close();}catch(SQLException ee){}
	//		if ( pstmt != null) try{pstmt.close();}catch(SQLException ee){}
		}
	
		return log_datas;
	}
	
	/**
	 *  @author Kswany
	 * 	Policy(정책) - Basic(기본정책) jqGrid Log List 가져오기
	 * 
	 *  searchStr: 검색조건
	 *  orderBy: sort조건
	 *  prev_page: first limit 
	 *  next_page: last limit
	 *  
	 * **/
	public List getJqgridBasicLogList(String searchStr, String orderBy, int prev_page, int next_page) 
//			throws SQLException{
			throws Exception{
		PreparedStatement pstmt=null;
		ResultSet rs = null;

		HashMap log_data_map = null;
		List log_datas = new ArrayList();
		
		try{			
			
		/*
		 *  DB value 값세팅 구현 로직 들어갈 부분
		 */
		// 가상데이터
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리2");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리3");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리4");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리5");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
	//	}catch (SQLException e){
		}catch (Exception e){
			throw e;
		}finally{
	//		if ( rs != null) try{rs.close();}catch(SQLException ee){}
	//		if ( pstmt != null) try{pstmt.close();}catch(SQLException ee){}
		}
	
		return log_datas;
	}
	
	/**
	 * @author : Kswany 
	 * Policy(정책) - Basic(기본정책) Info 가져오기 View
	 *	key: system_name(가상설정)
	 */
	public HashMap getBasicInfo(String system_name) 
//			throws SQLException {
			throws Exception{

		PreparedStatement pstmt=null;
		ResultSet rs = null;

		HashMap log_info_map = new HashMap();

		try {
			
			/*
			 *  DB value 값세팅 구현 로직 들어갈 부분
			 */
			// 가상데이터
			log_info_map.put("system_name", "redhat");
			log_info_map.put("policy_type", "O");
			log_info_map.put("control_root_login", "O");
			log_info_map.put("account_lock", "O");
			log_info_map.put("suspend", "O");
			log_info_map.put("notuse_account_lock", "O");
			log_info_map.put("control_dual_connect", "O");
			log_info_map.put("pw_min_length", "O");
			log_info_map.put("pw_max_length", "O");
			log_info_map.put("compare_before_pw", "O");
			log_info_map.put("compare_id_pw", "O");
			log_info_map.put("used_pw_mix_rule", "O");
			log_info_map.put("compare_pw_same_str", "X");
			log_info_map.put("compare_pw_straight_str", "X");
			log_info_map.put("compare_word", "O");
			log_info_map.put("control_before_pw", "동기화");
			log_info_map.put("last_sync_date", "2013-03-28-20:04:10");
			
		}catch (Exception e){
			throw e;
		}finally{
//			if ( rs != null) try{rs.close();}catch(SQLException ee){}
//			if ( pstmt != null) try{pstmt.close();}catch(SQLException ee){}
		}
		
		return log_info_map;
	}
	
	/**
	 * @author : Kswany 
	 * Policy(정책) - Basic(기본정책) Log 클릭시 Popup창으로 Info 가져오기
	 *	key: ip_addr(가상설정)
	 */
	public HashMap policy_detail(String ip_addr) 
//			throws SQLException {
			throws Exception{

		PreparedStatement pstmt=null;
		ResultSet rs = null;

		HashMap log_info_map = new HashMap();

		try {

			/*
			 *  DB value 값세팅 구현 로직 들어갈 부분
			 */
			// 가상데이터
			log_info_map.put("log_time", "2013-05-03 09:50:03");
			log_info_map.put("log_type", "계정관리");
			log_info_map.put("work_type", "계정정책 변경");
			log_info_map.put("user", "adadmin");
			log_info_map.put("account", "test1234");
			log_info_map.put("ip_addr", "192.168.1.1");
			log_info_map.put("target_system", "IDMServer");
			log_info_map.put("service", "webadmin");
			log_info_map.put("result", "실패");
			log_info_map.put("detail", "상세내역입니다");

		}catch (Exception e){
			throw e;
		}finally{
//			if ( rs != null) try{rs.close();}catch(SQLException ee){}
//			if ( pstmt != null) try{pstmt.close();}catch(SQLException ee){}
		}
		
		
		return log_info_map;
	}
	
	
	/**
	 *  @author Kswany
	 * 	Policy(정책) - Content(정책내용) jqGrid List 가져오기
	 * 
	 *  searchStr: 검색조건
	 *  orderBy: sort조건
	 *  prev_page: first limit 
	 *  next_page: last limit
	 *  
	 * **/
	public List getJqgridContentList(String searchStr, String orderBy, int prev_page, int next_page) 
//			throws SQLException{
			throws Exception{
		PreparedStatement pstmt=null;
		ResultSet rs = null;

		HashMap log_data_map = null;
		List log_datas = new ArrayList();
		
		try{			
			
		/*
		 *  DB value 값세팅 구현 로직 들어갈 부분
		 */
		// 가상데이터
		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat1");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("type", "시스템정책");
		log_data_map.put("system_name", "redhat2");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat3");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat4");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat5");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);

		log_data_map = new HashMap();
		log_data_map.put("type", "그룹정책");
		log_data_map.put("system_name", "redhat");
		log_data_map.put("group_name", "사용자정책");
		log_data_map.put("status", "동기화");
		log_data_map.put("join_date", "2013-04-02");
		log_datas.add(log_data_map);
				
	//	}catch (SQLException e){
		}catch (Exception e){
			throw e;
		}finally{
	//		if ( rs != null) try{rs.close();}catch(SQLException ee){}
	//		if ( pstmt != null) try{pstmt.close();}catch(SQLException ee){}
		}
	
		return log_datas;
	}
	
	/**
	 *  @author Kswany
	 * 	Policy(정책) - Content(정책내용) jqGrid Log List 가져오기
	 * 
	 *  searchStr: 검색조건
	 *  orderBy: sort조건
	 *  prev_page: first limit 
	 *  next_page: last limit
	 *  
	 * **/
	public List getJqgridContentLogList(String searchStr, String orderBy, int prev_page, int next_page) 
//			throws SQLException{
			throws Exception{
		PreparedStatement pstmt=null;
		ResultSet rs = null;

		HashMap log_data_map = null;
		List log_datas = new ArrayList();
		
		try{			
			
		/*
		 *  DB value 값세팅 구현 로직 들어갈 부분
		 */
		// 가상데이터
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리2");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리3");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리4");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리5");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
		log_data_map = new HashMap();
		log_data_map.put("calender", "2013-01-13 22:52:01");
		log_data_map.put("type", "계정관리");
		log_data_map.put("work", "계정정책변경");
		log_data_map.put("result", "성공");
		log_data_map.put("important", "정보");
		log_data_map.put("worker", "adadmin");
		log_data_map.put("ip_addr", "192.168.1.1");
		log_datas.add(log_data_map);
		
	//	}catch (SQLException e){
		}catch (Exception e){
			throw e;
		}finally{
	//		if ( rs != null) try{rs.close();}catch(SQLException ee){}
	//		if ( pstmt != null) try{pstmt.close();}catch(SQLException ee){}
		}
	
		return log_datas;
	}
	
	/**
	 * @author : Kswany 
	 * Policy(정책) - Content(정책내용) Info 정보 가져오기 View
	 *	Primary key: system_name(가상설정)
	 */
	public HashMap getContentInfo(String system_name) 
//			throws SQLException {
			throws Exception{

		PreparedStatement pstmt=null;
		ResultSet rs = null;

		HashMap log_info_map = new HashMap();

		try {
			
			/*
			 *  DB value 값세팅 구현 로직 들어갈 부분
			 */
			// 가상데이터
			log_info_map.put("system1", "기본정책");
			log_info_map.put("policy_type", "그룹 계정정책");
			log_info_map.put("pw_max_use_date", "30");
			log_info_map.put("pw_min_use_date", "7");
			log_info_map.put("pw_expire_notice_date", "7");
			log_info_map.put("pw_expire_block_date", "0");
			log_info_map.put("login_rejoin_count", "5");
			log_info_map.put("rejoin_count_time", "5");
			log_info_map.put("account_block_time", "0");
			log_info_map.put("notused_acount_distinction_date", "0");
			log_info_map.put("account_session_count", "0");
			log_info_map.put("session_time_out", "6");
			log_info_map.put("pw_min_length", "16");
			log_info_map.put("pw_max_length", "30");
			log_info_map.put("before_pw_save_count", "3");
			log_info_map.put("eng_str_imp_count", "2");
			log_info_map.put("number_imp_count", "1");
			log_info_map.put("upper_imp_count", "0");
			log_info_map.put("lower_imp_count", "0");
			log_info_map.put("special_imp_count", "1");
			log_info_map.put("same_imp_count", "3");
			log_info_map.put("consecutively_imp_count", "3");
			log_info_map.put("before_other_count", "3");
			log_info_map.put("full_dir", "/home");

		}catch (Exception e){
			throw e;
		}finally{
//			if ( rs != null) try{rs.close();}catch(SQLException ee){}
//			if ( pstmt != null) try{pstmt.close();}catch(SQLException ee){}
		}
		
		return log_info_map;
	}
	
	
}
